home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SysOp's Arsenal
/
SysOp's Arsenal 1 (Arsenal Computer).ISO
/
telecom
/
sfnet.scr
< prev
next >
Wrap
Text File
|
1994-09-02
|
6KB
|
219 lines
; =========================[ SFNET Qmodem Script ]===================
; -------------------
Graphics ANSI
TurnON 8_BIT ; These Are Our Terminal Settings
TurnOFF LINEFEED ; For This Session.
TurnOFF XON/XOFF ; You may change these.
TurnOFF NOISE
TurnOFF MUSIC
TurnON SCROLL
TurnOFF PRINT
TurnOFF SPLIT
TurnON STATUSLN
TurnOFF DOORWAY
TurnOFF ECHO
TurnON BS_DEL
;
; =========================[ Definitions ]===========================
;
; Do Not Change Any Of These Parameters!
;
STRING HUB NODE
STRING DOB PATH URNAME
STRING CAP
;
; ================[ Assign Strings To Definitions ]==================
;
; You MUST CHANGE THESE to suit your needs!
;
ASSIGN NODE "A051900x" ; This is your BBS-ID Number.
ASSIGN HUB "A051900x" ; This is your HUB BBS-ID Number (PACKET NAMES)
ASSIGN CAP "SFNET.CAP" ; Name of Qmodem Capture file.
ASSIGN PATH "C:\SF\SHILOH" ; Location For Files.
ASSIGN URNAME "Paul_Croteau" ; Your full name is the password.
ASSIGN DOB "xxxxxx" ; Your Date of Birth.
;
;
; =======================[ BODY OF SCRIPT ]==========================
;
DELETEF $PATH\$HUB.QWK ; Delete old mail packet
; Prevents importing old mail again.
;
DIAL "TSFNET" ; This will dial the entry in your phone list
; that has the text 'SFNET' in it.. Change this
; accordingly. The 'T' MUST preceed the ASCII search
; String with NO spaces between.
; Set dialing limit to 50 in dialing directory.
; Set Protocol to ZModem.
;
; Open a capture log file.
CAPTURE $PATH\$CAP
;
; Set Waitfor 60 seconds, goto Label TooLong if a timeout occurs.
TimeOut 60 TooLong
;
; If no connection after dialing then close script
IF $OFFLINE NoConnect
;
Waitfor "GRAPHICS? [y/N]"
Delay 100
Send "N"
;
Waitfor "first name:"
Delay 100
Send "$NODE^M"
;
Waitfor "last name:"
Delay 100
Send "^M"
;
Waitfor "password:"
Delay 100
Send "$URNAME^M"
;
; Account for possible requests during log on.
;
When
When "birth [MM-DD-YY]:" "$DOB"
When "< ENTER >" "^M"
When "(ENTER)" "^M"
When "message statistics?" "N"
When "new files" "N"
When "newsletter" "N"
When "PRIVATE FILE MENU -" DLFile
GOTO DoDownLoad
;
;-----;
DLFile:
;-----;
; If files sent with SFSENDIT then download them.
; Place in your SHILOH directory
;
WHEN ; Clears previous statements
Delay 500
Send "D" ; Request download
Waitfor "protocol"
Delay 500
Send "B" ; Letter for Zmodem batch transfer
Delay 500
WHEN "file to download:" "^M" ; Cycle through batch options
Delay 100
Waitfor "transfer now?" ; Start transfer now
Delay 500
Send "Y" ; Begin download now
Waitfor "Log off after transfer?"
Delay 500
Send "N" ; Don't log off after
Delay 500
DOWNLOAD Z $PATH\*.* ; Download all files to directory
Delay 500
; Initialize statements again to travel through display screens
When
When "< ENTER >" "^M"
When "(ENTER)" "^M"
When "message statistics?" "N"
When "new files" "N"
When "newsletter" "N"
;
;---------;
DoDownLoad:
;---------;
;
; Reset time out value higher so HUB has time to compress files.
TimeOut 300 TooLong
;
; ====================[ EXPORT PACKET FROM HUB ]=====================
;
Waitfor "]?" ; Waitfor Menu
Delay 100
Send "A" ; Selects Download Export Mail from the Menu.
Delay 15000 ; Pause for 15 seconds while HUB scans
; conferences for messages to export.
DOWNLOAD Z $PATH\$HUB.QWK ; Download with ZModem protocol.
IF $SUCCESS DoUpLoad ; If successful then goto DoUpLoad
;
Note
Note "Download Failed!" ; Send Note to screen captured in file.
GOTO DoDownLoad ; If not then try again.
;
;-------;
DoUpLoad:
;-------;
;
; ====================[ IMPORT PACKET FROM HUB ]=====================
;
Note
Note "Download Complete!" ; Download worked - Send a Note.
;
Waitfor "]?"
Delay 100
;
Send "B" ; Selects Upload Import Mail from the Menu.
Delay 1500 ; Pause for 1.5 seconds.
UPLOAD Z $PATH\$HUB.REP ; Upload with ZModem protocol.
IF $FAIL DoUpLoad
GOTO GoodBye
;
;------;
GoodBye:
;------;
; ====================[ NORMAL LOG OFF SEQUENCE ]====================
;
DELETEF $PATH\$HUB.REP ; Delete reply packet now.
;
Note
Note "Upload Complete!" ; Upload worked so Send a Note.
;
Waitfor "]?"
Delay 100
Send "G"
;
Waitfor "log off [Y/n]?" ; Say good-bye to the HUB.
Delay 100
Send "Y"
Delay 1500 ; Give HUB a buffer to log you off.
;
GOTO FinalEnd
;
;-------;
FinalEnd:
;-------;
; ==================[ Final Shut Down Of Script ]====================
;
When ; Clears previous when statements.
Waitfor "NO CARRIER"
Delay 100
HANGUP
Delay 500
TurnOFF CAPTURE
Delay 500
System X ; Return you to DOS prompt or batch file
;
;------;
TooLong:
;------;
; ======================[ Time Out Occurred ]========================
;
Note
Note "Time Out Occurred!"
When ; Clears previous when statements.
HANGUP
Delay 500
TurnOFF CAPTURE
Delay 500
System X
;
;--------;
NoConnect:
;--------;
; ======================[ No Connection Made ]=======================
;
Note
Note "No Connection Made!"
When ; Clears previous when statements.
HANGUP
Delay 500
TurnOFF CAPTURE
Delay 500
System X